[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Finds the index of the last item, in the range of count items ending at index,
that is equal to item.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public virtual int LastIndexOf( T item, int index, int count ) |
Visual Basic (Declaration) |
---|
Public Overridable Function LastIndexOf ( _ item As T, _ index As Integer, _ count As Integer _ ) As Integer |
Visual C++ |
---|
public: virtual int LastIndexOf ( T item, int index, int count ) |
Parameters
- item
- T
The item to search for.
- index
- Int32
The ending index of the range to check.
- count
- Int32
The number of items in range to check.
Return Value
The index of the last item in the given range that that is equal to item. If no item is equal to item, -1 is returned.Remarks
The default implementation of equality for type T is used in the search. This is the
equality defined by IComparable<T> or object.Equals.
See Also
ListBase<(Of <T>)> Class
Wintellect.PowerCollections Namespace